import React from 'react'
import { useState } from 'react';

export default function Counter() {
    const [count, setCount] = useState(0);

    window.setCount = setCount;
    return (
        <div className={`${count}`}>
            <p>You clicked {count} times</p>
            <button onClick={() => setCount(count + 1)}>
                Click me
            </button>
        </div>
    );
}

 

